/**
 * 
 */
package com.haizhi.service.impl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

import com.haizhi.bean.TbComment;
import com.haizhi.dao.CommentDao;
import com.haizhi.service.CommentService;

/**
 * @author jiangjintai
 *
 */
@Service("commonServico")
public class CommentServiceImpl extends BaseServiceImpl<TbComment, Integer> implements
		CommentService {
	@Autowired
	CommentDao commentDao;
	/* （非 Javadoc）
	 * @see com.haizhi.service.impl.BaseServiceImpl#getDao()
	 */
	@Override
	protected JpaRepository<TbComment, Integer> getDao() {
		// 
		return commentDao;
	}
	/* （非 Javadoc）
	 * @see com.haizhi.service.CommentService#findByTbProductProductId(java.lang.String)
	 */
	@Override
	public Page<TbComment> findByTbProductProductId(Integer productId,Pageable pageable) {
		// 
		return this.commentDao.findByTbProductProductId(productId,pageable);
		
	}

}
